<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Gets certain values</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="function.ps-get-parameter.html">« ps_get_parameter</a></li>
      <li style="float: right;"><a href="function.ps-hyphenate.html">ps_hyphenate »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="ref.ps.html">PS 函数</a></li>
    <li>Gets certain values</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="function.ps-get-value" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ps_get_value</h1>
  <p class="verinfo">(PECL ps &gt;= 1.1.0)</p><p class="refpurpose"><span class="refname">ps_get_value</span> &mdash; <span class="dc-title">Gets certain values</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.ps-get-value-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>ps_get_value</strong></span>(<span class="methodparam"><span class="type">resource</span> <code class="parameter">$psdoc</code></span>, <span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code></span>, <span class="methodparam"><span class="type">float</span> <code class="parameter">$modifier</code><span class="initializer"> = ?</span></span>): <span class="type">float</span></div>

  <p class="para rdfs-comment">Gets several values which were set by
   <span class="function"><a href="function.ps-set-value.html" class="function">ps_set_value()</a></span>. Values are by definition float values.
  </p>
  <p class="para">
   The parameter <code class="parameter">name</code> can have the following values.
  </p>
  <p class="para">
   <dl>
    
     <dt>
<code class="literal">fontsize</code></dt>

     <dd>

      <p class="para">
       The size of the currently active font or the font whose
       identifier is passed in parameter <code class="parameter">modifier</code>.
      </p>
     </dd>

    
    
     <dt>
<code class="literal">font</code></dt>

     <dd>

      <p class="para">
       The currently active font itself.
      </p>
     </dd>

    
    
     <dt>
<code class="literal">imagewidth</code></dt>

     <dd>

      <p class="para">
       The width of the image whose id is passed in the parameter
       <code class="parameter">modifier</code>.
      </p>
     </dd>

    
    
     <dt>
<code class="literal">imageheight</code></dt>

     <dd>

      <p class="para">
       The height of the image whose id is passed in the parameter
       <code class="parameter">modifier</code>.
      </p>
     </dd>

    
    
     <dt>
<code class="literal">capheight</code></dt>

     <dd>

      <p class="para">
       The height of a capital M in the currently active font or the font
       whose identifier is passed in parameter
       <code class="parameter">modifier</code>.
      </p>
     </dd>

    
    
     <dt>
<code class="literal">ascender</code></dt>

     <dd>

      <p class="para">
       The ascender of the currently active font or the font
       whose identifier is passed in parameter
       <code class="parameter">modifier</code>.
      </p>
     </dd>

    
    
     <dt>
<code class="literal">descender</code></dt>

     <dd>

      <p class="para">
       The descender of the currently active font or the font
       whose identifier is passed in parameter
       <code class="parameter">modifier</code>.
      </p>
     </dd>

    
    
     <dt>
<code class="literal">italicangle</code></dt>

     <dd>

      <p class="para">
       The italicangle of the currently active font or the font
       whose identifier is passed in parameter
       <code class="parameter">modifier</code>.
      </p>
     </dd>

    
    
     <dt>
<code class="literal">underlineposition</code></dt>

     <dd>

      <p class="para">
       The underlineposition of the currently active font or the font
       whose identifier is passed in parameter
       <code class="parameter">modifier</code>.
      </p>
     </dd>

    
    
     <dt>
<code class="literal">underlinethickness</code></dt>

     <dd>

      <p class="para">
       The underlinethickness of the currently active font or the font
       whose identifier is passed in parameter
       <code class="parameter">modifier</code>.
      </p>
     </dd>

    
    
     <dt>
<code class="literal">textx</code></dt>

     <dd>

      <p class="para">
       The current x-position for text output.
      </p>
     </dd>

    
    
     <dt>
<code class="literal">texty</code></dt>

     <dd>

      <p class="para">
       The current y-position for text output.
      </p>
     </dd>

    
    
     <dt>
<code class="literal">textrendering</code></dt>

     <dd>

      <p class="para">
       The current mode for text rendering.
      </p>
     </dd>

    
    
     <dt>
<code class="literal">textrise</code></dt>

     <dd>

      <p class="para">
       The space by which text is risen above the base line.
      </p>
     </dd>

    
    
     <dt>
<code class="literal">leading</code></dt>

     <dd>

      <p class="para">
       The distance between text lines in points.
      </p>
     </dd>

    
    
     <dt>
<code class="literal">wordspacing</code></dt>

     <dd>

      <p class="para">
       The space between words as a multiple of the width of a space char.
      </p>
     </dd>

    
    
     <dt>
<code class="literal">charspacing</code></dt>

     <dd>

      <p class="para">
       The space between chars. If charspacing is != 0.0 ligatures will
       always be dissolved.
      </p>
     </dd>

    
    
     <dt>
<code class="literal">hyphenminchars</code></dt>

     <dd>

      <p class="para">
       Minimum number of chars hyphenated at the end of a word.
      </p>
     </dd>

    
    
     <dt>
<code class="literal">parindent</code></dt>

     <dd>

      <p class="para">
       Indention of the first n line in a paragraph.
      </p>
     </dd>

    
    
     <dt>
<code class="literal">numindentlines</code></dt>

     <dd>

      <p class="para">
       Number of line in a paragraph to indent if parindent != 0.0.
      </p>
     </dd>

    
    
     <dt>
<code class="literal">parskip</code></dt>

     <dd>

      <p class="para">
       Distance between paragraphs.
      </p>
     </dd>

    
    
     <dt>
<code class="literal">linenumberspace</code></dt>

     <dd>

      <p class="para">
       Overall space in front of each line for the line number.
      </p>
     </dd>

    
    
     <dt>
<code class="literal">linenumbersep</code></dt>

     <dd>

      <p class="para">
       Space between the line and the line number.
      </p>
     </dd>

    
    
     <dt>
<code class="literal">major</code></dt>

     <dd>

      <p class="para">
       The major version number of pslib.
      </p>
     </dd>

    
    
     <dt>
<code class="literal">minor</code></dt>

     <dd>

      <p class="para">
       The minor version number of pslib.
      </p>
     </dd>

    
    
     <dt>
<code class="literal">subminor</code>, <code class="literal">revision</code></dt>

     <dd>

      <p class="para">
       The subminor version number of pslib.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.ps-get-value-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>
    
     <dt>
<code class="parameter">psdoc</code></dt>

     <dd>

      <p class="para">
       Resource identifier of the postscript file
       as returned by <span class="function"><a href="function.ps-new.html" class="function">ps_new()</a></span>.
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">name</code></dt>

     <dd>

      <p class="para">
       Name of the value.
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">modifier</code></dt>

     <dd>

      <p class="para">
       The parameter <code class="parameter">modifier</code> specifies the resource
       for which the value is to be retrieved. This can be the id of a font or
       an image.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.ps-get-value-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns the value of the parameter or <strong><code>false</code></strong>.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.ps-get-value-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="function.ps-set-value.html" class="function" rel="rdfs-seeAlso">ps_set_value()</a> - Sets certain values</span></li>
   </ul>
  </p>
 </div>

</div></div></div></body></html>